home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2001 November / macformat-109.iso / Demos / Alice Demo / demo / pak0.pk3 / ai / walkrock.st < prev   
Encoding:
Text File  |  2000-11-20  |  998 b   |  91 lines

  1. state IDLE
  2. {
  3.     legs
  4.     {
  5.         idle : default
  6.     }
  7.  
  8.     behavior idle
  9.  
  10.     states
  11.     {
  12.         //GETUP        : MOVING_ACTOR_RANGE "150"
  13.         GETUP        : RANGE "150"
  14.     }
  15. }
  16.  
  17. state AVOID_OTHERS
  18. {
  19.     legs
  20.     {
  21.         walk : default
  22.     }
  23.  
  24.     behavior Flee
  25.  
  26.     states
  27.     {
  28.         //AVOID_RUN    : ANIM_DONE MOVING_ACTOR_RANGE "100"
  29.         AVOID_RUN    : ANIM_DONE RANGE "100"
  30.         GETDOWN    : ANIM_DONE BEHAVIOR_DONE
  31.         //GETDOWN    : ANIM_DONE !MOVING_ACTOR_RANGE "180"
  32.         GETDOWN    : ANIM_DONE !RANGE "180"
  33.     }
  34. }
  35.  
  36. state AVOID_RUN
  37. {
  38.     legs
  39.     {
  40.         run : default
  41.     }
  42.  
  43.     behavior Flee
  44.  
  45.     states
  46.     {
  47.         //AVOID_OTHERS : ANIM_DONE !MOVING_ACTOR_RANGE "100"
  48.         AVOID_OTHERS : ANIM_DONE !RANGE "100"
  49.     }
  50. }
  51.  
  52. state GETUP
  53. {
  54.     legs
  55.     {
  56.         getting_up : default
  57.     }
  58.  
  59.     behavior Watch "1"
  60.  
  61.     states
  62.     {
  63.         AVOID_OTHERS : ANIM_DONE
  64.     }
  65. }
  66.  
  67. state GETDOWN
  68. {
  69.     legs
  70.     {
  71.         getting_down : default
  72.     }
  73.  
  74.     behavior Watch "1"
  75.  
  76.     states
  77.     {
  78.         IDLE    : ANIM_DONE
  79.     }
  80. }
  81.  
  82. state DEATH
  83. {
  84.     legs
  85.     {
  86.         death_frozen : MOD "icewand"
  87.         death    : default
  88.     }
  89. }
  90.  
  91.